package org.itboys.mobile.entity.mysql.wallet;

import org.itboys.mongodb.entity.BaseMySqlEntity;

import java.math.BigDecimal;

/**
 * Created on 2017/9/27.
 * @author 朱坤涛
 */
public class PearlWallet extends BaseMySqlEntity {
    private long memberId; //用户ID
    private BigDecimal totalRevenue; //总金额
    private BigDecimal ableRevenue; //可用金额
    private BigDecimal frozenRevenue; //冻结收益，提现消费交易还没完全成功时

    public PearlWallet(){}

    public PearlWallet(long memberId){
        this.memberId=memberId;
        this.totalRevenue=new BigDecimal("0");
        this.ableRevenue=new BigDecimal("0");
        this.frozenRevenue=new BigDecimal("0");
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public BigDecimal getTotalRevenue() {
        return totalRevenue;
    }

    public void setTotalRevenue(BigDecimal totalRevenue) {
        this.totalRevenue = totalRevenue;
    }

    public BigDecimal getAbleRevenue() {
        return ableRevenue;
    }

    public void setAbleRevenue(BigDecimal ableRevenue) {
        this.ableRevenue = ableRevenue;
    }

    public BigDecimal getFrozenRevenue() {
        return frozenRevenue;
    }

    public void setFrozenRevenue(BigDecimal frozenRevenue) {
        this.frozenRevenue = frozenRevenue;
    }


}
